using Microsoft.ML.Data;

namespace WMS_Goodsinfo.Infastructure.Models
{
    /// <summary>
    /// 预测输入数据模型
    /// </summary>
    public class PredictionInput
    {
        [LoadColumn(0)]
        public float AvgOutbound7Days { get; set; }

        [LoadColumn(1)]
        public float AvgOutbound30Days { get; set; }

        [LoadColumn(2)]
        public float DailyInventoryBalance { get; set; }

        [LoadColumn(3)]
        public float DayOfWeek { get; set; }

        [LoadColumn(4)]
        public float Month { get; set; }

        [LoadColumn(5)]
        public float IsHoliday { get; set; }

        [LoadColumn(6), ColumnName("Label")]
        public float DailyOutboundQuantity { get; set; }
    }

    /// <summary>
    /// 预测输出数据模型
    /// </summary>
    public class PredictionOutput
    {
        [ColumnName("Score")]
        public float PredictedOutboundQuantity { get; set; }
    }

    /// <summary>
    /// 特征向量模型
    /// </summary>
    public class FeatureVector
    {
        public decimal AvgOutbound7Days { get; set; }
        public decimal AvgOutbound30Days { get; set; }
        public int DailyInventoryBalance { get; set; }
        public int DayOfWeek { get; set; }
        public int Month { get; set; }
        public bool IsHoliday { get; set; }
    }
} 